package cn.hdu.liang.core.dao.product;

import java.util.List;

import cn.hdu.liang.core.bean.product.Feature;
import cn.hdu.liang.core.query.product.FeatureQuery;

public interface FeatureDao {

    //添加
    public Integer addFeature(Feature feature);

    //根据主键查找
    public Feature getFeatureByKey(Integer id);

    //根据主键批量查找
    public List<Feature> getFeaturesByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateFeatureByKey(Feature feature);

    //分页查询
    public List<Feature> getFeatureListWithPage(FeatureQuery featureQuery);

    //集合查询
    public List<Feature> getFeatureList(FeatureQuery featureQuery);

    //总条数
    public int getFeatureListCount(FeatureQuery featureQuery);
}
